<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <title>设备作业信息</title>
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui-pull-refresh.css" />
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="css/form.css" />
    <link rel="stylesheet" type="text/css" href="css/comm.css" />
    <link rel="stylesheet" type="text/css" href="css/plandevicetaskdetail.css" />
    <link rel="stylesheet" type="text/css" href="css/detailstyle.css" />
    <link rel="stylesheet" type="text/css" href="../script/vant/index.css" />
    <style>
        textarea{
            margin-left: 16px;
            margin-right: 16px;
        }
        textarea::placeholder{
            padding-left: 2px;
        }
        .noinfo{
            color: #ddd;
            padding-top: 10%;
        }
        .mb30{
            margin-bottom: 30px !important;
        }
        .ycbtn{
            height: 52px;
            line-height: 52px;
            border-top: solid 1px #eee;
            text-align: center;
        }
        .van-action-sheet__cancel{
            padding-bottom: 40px;
        }
        .equipment_list_box_term_input{
            padding: 6px 0 0px 0;
            border-bottom: 0;
        }
    </style>
</head>

<body>
    <div id="app" v-cloak>
        <div class="posibox div-flex-center" >
            <div class="posiicon aui-margin-r-5">
                <i class="icon iconfont icon-dizhi"></i>
            </div>
            <div class="posicontent">{{form.GPSLocation}}</div>
            <div class="posibtn" v-on:click="StartBmap()">
                <i class="icon iconfont icon-shuaxin2-copy-copy"></i>
            </div>
        </div>

        <div v-for="device in DeviceList" class="boxarea detail equipment_list">
            <div class="equipment_title">工作标准-{{device.DeviceName}}<span v-if="device.DeviceNo">({{device.DeviceNo}})</span></div>
            <div class="noinfo noinfo-mt" v-if="device.standardlist.length==0">
                该设备没有巡检标准哦
            </div>
            <!-- loop Type 1-观察  2-选择  3手动录入-->
            <div v-if="device.standardlist.length>0" v-for="item in device.standardlist" class="equipment_list_box">
                <div class="equipment_list_box_term">{{item.StandardName}}</div>
                <div v-if="item.StandardContent" class="equipment_list_box_term" style="padding-top: 2px;color: #aaa;">{{item.StandardContent}}</div>
                <div class="equipment_list_box_term_input">
                    <div v-if="item.Type!=2&&item.Type!=3" style="display: flex;align-items: center">
                        <label class="label_radio" >
                        <input class="aui-radio" type="radio" v-bind:name="item.ID+device.ID+'normal'" v-bind:checked="item.CheckStatus==1">
                          正常
                        </label>
                        <label  class="label_radio" >
                            <van-radio disabled v-model="item.CheckStatus" label="2">异常</van-radio>
                          <!-- <input class="aui-radio" type="radio" v-bind:name="item.ID+device.ID+'normal'" v-bind:disabled="true" readonly="readonly"  v-bind:checked="item.CheckStatus==2"> -->
                          <!-- 异常 -->
                        </label>
                    </div>
                    <div v-if="item.Type==2&&item.Type!=undefined">
                        <label v-for="itemc in item.list" class="aui-margin-r-10">
                            <van-checkbox  v-model="itemc.IsChecked" icon-size="24px" shape="square" >{{itemc.name}}</van-checkbox>
                        </label>
                    </div>
                    <div v-if="item.Type==3&&item.Type!=undefined">
                        <input v-model="item.CheckContent" placeholder="请录入"  type="text" style="border: solid 0.5px #ddd;border-radius: 6px;padding: 0 10px;"> 
                    </div>
                </div>
            </div>
            <!-- loop -->
        </div>
        <div class="boxarea detail equipment_result mb30">
            <div class="equipment_result_title">
                <div class="equipment_title">作业结果</div>
                <div class="aui-padded-l-10 aui-padded-r-10 aui-margin-t-15">
                    <div class="public-tip">说明：批量完成任务时，结果只能选择【正常】。</div>
                </div>
                <div class="equipment_result_title_input">
                    <div style="display: flex;align-items: center">
                        <label  class="label_radio" >
                          <input class="aui-radio" type="radio"  name="allnormal" v-bind:checked="form.CheckStatus==1">
                          正常
                        </label>
                        <label  class="label_radio">
                            <van-radio disabled v-model="form.CheckStatus" label="2">异常</van-radio>
                          <!-- <input class="aui-radio" type="radio" v-bind:disabled="true" readonly="readonly" name="allnormal" v-bind:checked="form.CheckStatus==2"> -->
                          <!-- 异常 -->
                        </label>
                    </div>
                </div>
                <div class="cl"></div>
            </div>
            <div class="equipment_result_edit">
                <div class="aui_formtitle contentdec">情况说明</div>
                <div class="aui-list-item-inner">
                    <div class="aui-list-item-input">
                        <textarea  placeholder="请填写详细的情况说明(选填信息)" v-model="form.TaskCompleteContent" style="width:90%; margin:auto;height: 6rem;"></textarea>    
                    </div>
                </div>
            </div>
            <div class="imglist_box">
                <div class="imglist_item" v-for="(item,index) in imglist">
                    <img v-on:click="do_viewimages(index)" class="imgitem ml4" v-bind:src="item.url" />
                    <img  v-on:click="remove_img(index,item)" class="onmouse_close" src="../image/close_mouseover.svg" />
                </div>
                <div v-if="imglist.length<maxuploadcount" class="imglist_item ml4">
                    <div class="img_plusbox">
                        <img v-on:click="choose_picture()" src="../image/photo_image.svg"/>
                    </div>
                    最多支持{{maxuploadcount}}张
                </div>
            </div>
            <div class="cl"></div>
        </div>

        <div class="form-height"></div>
        <div class="aui_bottom">
            <div class="aui_bottombtn" v-on:click="do_save()">提交</div>
        </div>
    </div>
</body>
<script type="text/javascript " src="../script/api.js "></script>
<script type="text/javascript " src="../script/vue.js "></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/aui-toast.js"></script>
<script type="text/javascript" src="../script/aui-tab.js"></script>
<script type="text/javascript" src="../script/aui-pull-refresh.js"></script>
<script type="text/javascript" src="../script/aui-scroll.js"></script>
<script type="text/javascript" src="../script/aui-popup.js"></script>
<script type="text/javascript " src="../script/moment/moment.js"></script>
<script type="text/javascript " src="../script/vant/vue.js"></script>
<script type="text/javascript " src="../script/vant/vant.js"></script>
<script type="text/javascript" src="js/equipment_details_group.js"></script>

</html>
